{extend name="public/base" /}
{block name="body"}
<!--主题-->
<div class="page-header">
    <h1>
        您当前操作
        <small>
            <i class="ace-icon fa fa-angle-double-right"></i>
            站点设置
        </small>
    </h1>
</div>
<div class="row">
    <div class="col-xs-12">
        <form class="form-horizontal" name="sys" id="myform" method="post" action="{:url('Sys/SaveConf')}">
            <input type="hidden" name="id" value="{$row.id}"/>
            <input type="hidden" name="email_open" value="{$row.email_open}"/>
            <div class="form-group">
                <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 站点名称 </label>

                <div class="col-sm-9">
                    <input type="text" name="sys_name" id="sys_name" value="{$row.sys_name}" class="col-xs-10 col-sm-5"/>
                    <span class="help-inline col-xs-12 col-sm-7">
                        <span class="middle" id="resone"></span>
                    </span>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 站点网址 </label>

                <div class="col-sm-9">
                    <input type="text" name="sys_url" id="sys_url" value="{$row.sys_url}" class="col-xs-10 col-sm-5"/>
                    <span class="help-inline col-xs-12 col-sm-7">
                        <span class="middle" id="restwo"></span>
                    </span>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 首页SEO标题 </label>

                <div class="col-sm-9">
                    <input type="text" name="sys_title" id="sys_title" value="{$row.sys_title}"  class="col-xs-10 col-sm-5"/>
                    <span class="help-inline col-xs-12 col-sm-7">
                        <span class="middle" id="resthr"></span>
                    </span>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 首页SEO关键字 </label>

                <div class="col-sm-9">
                    <textarea name="sys_key" cols="20" class="col-xs-10 col-sm-7 limited" id="form-field-9" maxlength="100">{$row.sys_key}</textarea>
                    <span class="help-inline col-xs-5 col-sm-5">
                        还可以输入 <span class="middle charsLeft"></span> 个字符,以英文 , 号隔开
                    </span>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 首页SEO描述 </label>

                <div class="col-sm-9">
                    <textarea name="sys_des" cols="20" class="col-xs-10 col-sm-7 limitedone" id="form-field-10" maxlength="200">{$row.sys_des}</textarea>
                    <span class="help-inline col-xs-5 col-sm-5">
                        还可以输入 <span class="middle charsLeftone"></span> 个字符
                    </span>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="clearfix form-actions">
                <div class="col-md-offset-3 col-md-9">
                    <button class="btn btn-info" type="submit">
                        <i class="ace-icon fa fa-check bigger-110"></i>
                        保存
                    </button>

                    &nbsp; &nbsp; &nbsp;
                    <button class="btn" type="reset">
                        <i class="ace-icon fa fa-undo bigger-110"></i>
                        重置
                    </button>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="hr hr-24"></div>
<script type="text/javascript">
$(function(){
    $('textarea.limited').maxlength({
        'feedback' : '.charsLeft', 
    });

    $('textarea.limitedone').maxlength({
        'feedback' : '.charsLeftone', 
    });
});
</script>
{/block}